//路由path用 demo-home 形式首字母都小写
//name用驼峰式 DemoHome
//组件名用驼峰式 DemoHome 或 DemoHomeSomeWhere

//子路由命名方式：父路由+子路由 DemoHomeBlankPage
//子路由的path 父路由path+子路由path，如：/demo-home/blank-page

/*
  模块  常用组件及template演示-路由配置
  创建人    zgf
  更新时间  2019/06/03
  备注
*/
import Layout from '@/layout'
export default ([

  //home 首页
  {
    //weekpicker
    path: '/home',
    component:Layout,
    name: 'Home',
    redirect:'/index',
    meta: {
      title: 'layout',
      requireAuth: false
    },
    children:[
      {
        //weekpicker
        path: '/index',
        name: 'Index',
        component: () => import(/* webpackChunkName: "Home" */ '@/views/home'),
        meta: {
          title: '监督指挥系统',
          requireAuth: false
        },
      },
    ],
  },
  //home 监督员
  {
    //weekpicker
    path: '/monitors',
    component:Layout,
    name: 'Monitors',
    redirect:'/monitors/monitors',
    meta: {
      title: 'layout',
      requireAuth: false
    },
    children:[
      {
        //weekpicker
        path: '/monitors/monitors',
        name: 'MonitorsIndex',
        component: () => import(/* webpackChunkName: "MonitorsIndex" */ '@/views/monitors/monitors'),
        meta: {
          title: '监督员',
          requireAuth: false
        },
      },
    ],
  },
  //home 案件分析
  {
    path: '/analysis',
    component:Layout,
    name: 'Analysis',
    redirect:'/analysis/index',
    meta: {
      title: '案件分析',
      requireAuth: false
    },
    children:[
      {
        path: '/analysis/index',
        name: 'AnalysisIndex',
        component: () => import(/* webpackChunkName: "AnalysisIndex" */ '@/views/analysis/index'),
        meta: {
          title: '案件流程',
          requireAuth: false
        },
      },
      {
        path: '/analysis/area-dynamicinfo',
        name: 'AnalysisAreaDynamicInfo',
        component: () => import(/* webpackChunkName: "AnalysisAreaDynamicInfo" */ '@/views/analysis/areaDynamicInfo'),
        meta: {
          title: '区域动态',
          requireAuth: false
        },
      },
      {
        path: '/analysis/type-dynamicinfo',
        name: 'AnalysisTypeDynamicInfo',
        component: () => import(/* webpackChunkName: "AnalysisTypeDynamicInfo" */ '@/views/analysis/typeDynamicInfo'),
        meta: {
          title: '类型动态',
          requireAuth: false
        },
      },
      {
        path: '/analysis/source-dynamicinfo',
        name: 'AnalysisSourceDynamicInfo',
        component: () => import(/* webpackChunkName: "AnalysisSourceDynamicInfo" */ '@/views/analysis/sourceDynamicInfo'),
        meta: {
          title: '来源动态',
          requireAuth: false
        },
      },
      {
        path: '/analysis/incidence-dynamicinfo',
        name: 'AnalysisIncidenceDynamicInfo',
        component: () => import(/* webpackChunkName: "AnalysisIncidenceDynamicInfo" */ '@/views/analysis/incidenceDynamicInfo'),
        meta: {
          title: '高发问题',
          requireAuth: false
        },
      },
    ],
  },

  // 综合评价
  {
    path: '/evaluation',
    component:Layout,
    name: 'Evaluation',
    redirect:'/evaluation/index',
    meta: {
      title: '综合评价',
      requireAuth: false
    },
    children:[
      {
        path: '/evaluation/index',
        name: 'EvaluationIndex',
        component: () => import(/* webpackChunkName: "EvaluationIndex" */ '@/views/evaluation'),
        meta: {
          title: '岗位评价',
          requireAuth: false
        },
      },
      {
        path: '/evaluation/hotline-evaluation',
        name: 'HotlineEvaluation',
        component: () => import(/* webpackChunkName: "HotlineEvaluation" */ '@/views/evaluation/hotlineEvaluation'),
        meta: {
          title: '便民热线评价',
          requireAuth: false
        },
      },
      {
        path: '/evaluation/problem-report-evaluation',
        name: 'ProblemReportEvaluation',
        component: () => import(/* webpackChunkName: "ProblemReportEvaluation" */ '@/views/evaluation/problemReportEvaluation'),
        meta: {
          title: '问题上报评价',
          requireAuth: false
        },
      },
    ],
  },
  // 基础数据
  {
    path: '/basic-data',
    component:Layout,
    name: 'BasicData',
    redirect:'/basic-data/index',
    meta: {
      title: '城市部件',
      requireAuth: false
    },
    children:[
      {
        path: '/basic-data/index',
        name: 'BasicDataIndex',
        component: () => import(/* webpackChunkName: "BasicDataIndex" */ '@/views/basicData'),
        meta: {
          title: '部件普查结果',
          requireAuth: false
        },
      },
      {
        path: '/basic-data/component-analysis',
        name: 'BasicDataComponentAnalysis',
        component: () => import(/* webpackChunkName: "BasicDataComponentAnalysis" */ '@/views/basicData/componentAnalysis'),
        meta: {
          title: '部件覆盖率',
          requireAuth: false
        },
      },
      {
        path: '/basic-data/component-map',
        name: 'BasicDataMap',
        component: () => import(/* webpackChunkName: "BasicDataComponentAnalysis" */ '@/views/basicData/map'),
        meta: {
          title: '部件展示',
          requireAuth: false
        },
      }
    ],
  },
//视频监控
  {
    path: '/videomonitor',
    component:Layout,
    name: 'Videomonitor',
    redirect:'/videomonitor/index',
    meta: {
      title: 'layout',
      requireAuth: false
    },
    children:[
      {
        //weekpicker
        path: '/videomonitor/index',
        name: 'VideomonitorIndex',
        component: () => import(/* webpackChunkName: "AnalysisIndex" */ '@/views/videomonitor'),
        meta: {
          title: '视频监控',
          requireAuth: false
        },
      },
      {
        //weekpicker
        path: '/videomonitor/duty',
        name: 'VideomonitorDuty',
        component: () => import(/* webpackChunkName: "AnalysisIndex" */ '@/views/videomonitor/duty'),
        meta: {
          title: '值守监控',
          requireAuth: false
        },
      },
    ],
  },


  //home 开发中
  {
    //weekpicker
    path: '/coding',
    component:Layout,
    name: 'Coding',
    redirect:'/coding/index',
    meta: {
      title: 'layout',
      requireAuth: false
    },
    children:[
      {
        //weekpicker
        path: '/coding/index',
        name: 'CodingIndex',
        component: () => import(/* webpackChunkName: "CodingIndex" */ '@/views/home/blankPage'),
        meta: {
          title: '案件分析',
          requireAuth: false
        },
      },
    ],
  },

   //测试
   {
    path: '/test',
    component:Layout,
    name: 'Test',
    redirect:'/map/demo',
    meta: {
      title: 'layout',
      requireAuth: false
    },
    children:[
      {
        //weekpicker
        path: '/map/demo',
        name: 'MapDemo',
        component: () => import(/* webpackChunkName: "MapDemo" */ '@/views/analysis/mapDemo'),
        meta: {
          title: 'analysis',
          requireAuth: false
        },
      },
    ],
  },
])
